<%@ page contentType= "text/html;charset=utf-8" %>

<html>
<%@ include file="../common/base.jsp" %>
<body>

<div id="container">
<%@ include file="../common/header.jsp" %>

	<div id="menu">	
		<a href="<c:url value="/common/home.o"/>"><fmt:message key="Home" /></a> > 
	    <a href="<c:url value="/role/manage.o"/>"><fmt:message key="Role" /></a> > 
	   <fmt:message key="${action}" />
	    <div  style="float: right" >
	    	<fmt:message key="Logged" />: <c:out value="${currentUser.username}" /> (<a href="<c:url value="/common/logout.o"/>"><fmt:message key="Logout" /></a>)
	    </div>
	</div> 
	
	<div id="midbody">
	      <div id="leftside">
		  	<br>
		 	<a href="<c:url value="/role/manage.o"/>"><fmt:message key="AllRole" /></a>
	      </div>
	      <div id="rightside">
	        <div id="bigbox">
	        <div class="title">
	        	<fmt:message key="${action}" /> <fmt:message key="Role" />
	        	<%@ include file="../common/hidemenu.jsp" %>
	        </div>
	
	        <div class="content">
	              
	            <form:form modelAttribute="employeeRole">
	                <form:errors path="*" element="div" cssClass="errors"/>
	                <div><div class="form-label"><fmt:message key="Name" />:</div><form:input path="name"/></div>
	                <div><div class="form-label"><fmt:message key="Description" />:</div><form:textarea path="description"/></div>
	                <div><div class="form-label"><fmt:message key="Permissions" />:</div>&nbsp;</div>
	                <div>
	                	<p>[ Process ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="process:*"/>process:*</td>
	                			<td></td>
								<td></td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="process:query:*"/>process:query:*</td>
	                			<td><form:checkbox path="permissions" value="process:create:*"/>process:create:*</td>
	                			<td><form:checkbox path="permissions" value="process:delete:*"/>process:delete:*</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="process:archive:*"/>process:archive:*</td>
	                			<td><form:checkbox path="permissions" value="process:print:*"/>process:print:*</td>
	                			<td><form:checkbox path="permissions" value="process:edit:*"/>process:edit:*</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="process:export:*"/>process:export:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                	</table>
	                	
	                	<p>[ Step ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:*"/>step:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:*"/>step:input:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step00"/>step:input:step00</td>
	                			<td><form:checkbox path="permissions" value="step:input:step10_1"/>step:input:step10_1</td>
	                			<td><form:checkbox path="permissions" value="step:input:step10_2"/>step:input:step10_2</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step20"/>step:input:step20</td>
	                			<td><form:checkbox path="permissions" value="step:input:step30_1"/>step:input:step30_1</td>
	                			<td><form:checkbox path="permissions" value="step:input:step30_2"/>step:input:step30_2</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step40"/>step:input:step40</td>
	                			<td><form:checkbox path="permissions" value="step:input:step50"/>step:input:step50</td>
	                			<td><form:checkbox path="permissions" value="step:input:step60"/>step:input:step60</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step70"/>step:input:step70</td>
	                			<td><form:checkbox path="permissions" value="step:input:step80"/>step:input:step80</td>
	                			<td><form:checkbox path="permissions" value="step:input:step90"/>step:input:step90</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step100_1"/>step:input:step100_1</td>
	                			<td><form:checkbox path="permissions" value="step:input:step100_2"/>step:input:step100_2</td>
	                			<td><form:checkbox path="permissions" value="step:input:step100_3"/>step:input:step100_3</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step110"/>step:input:step110</td>
	                			<td><form:checkbox path="permissions" value="step:input:step120_1"/>step:input:step120_1</td>
	                			<td><form:checkbox path="permissions" value="step:input:step120_2"/>step:input:step120_2</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step130"/>step:input:step130</td>
	                			<td><form:checkbox path="permissions" value="step:input:step140_1"/>step:input:step140_1</td>
	                			<td><form:checkbox path="permissions" value="step:input:step140_2"/>step:input:step140_2</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step150"/>step:input:step150</td>
	                			<td><form:checkbox path="permissions" value="step:input:step160"/>step:input:step160</td>
	                			<td><form:checkbox path="permissions" value="step:input:step170_1"/>step:input:step170_1</td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="step:input:step170_2"/>step:input:step170_2</td>
	                			<td><form:checkbox path="permissions" value="step:input:step180"/>step:input:step180</td>
	                			<td><form:checkbox path="permissions" value="step:input:Complete"/>step:input:datasheet</td>
	                		</tr>
	                	</table>
	                	
	                	<p>[ User/Role ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="user:*"/>user:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="role:*"/>role:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                	</table>
	                	
	                	<p>[ Template ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="template:*"/>template:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                	</table>
	                	
	                	<p>[ Spec ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="spec:*"/>spec:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                	</table>
	                	
	                	<p>[ Dictionary ]</p>
	                	<table>
	                		<tr>
	                			<td><form:checkbox path="permissions" value="dictionary:*"/>dictionary:*</td>
	                			<td></td>
	                			<td></td>
	                		</tr>
	                	</table>
	                </div>
					
	                <div>
	                	<input type="submit" value="<fmt:message key='Save' />"/>&nbsp;
	                	<input type="button" onclick="document.location.href='<c:url value="/role/manage.o"/>'" value="<fmt:message key='Cancel' />"/>
	                </div>
	            </form:form>
	           
	        </div>
	
	    </div>
	
		</div>
	</div>
	<%@ include file="../common/foot.jsp" %>

</div>
	
<script type="text/javascript">
    document.getElementById('name').focus();
</script>

</body>
</html>
